<?php

namespace App\Providers;

use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{

    // 事件，监听 1对多
    protected $listen = [
        'Illuminate\Queue\Events\JobExceptionOccurred' => [
            'App\Listeners\JobExceptionListener',
        ],
    ];

    // 事件，监听 多对多
    protected $subscribe = [
        // 'App\Listeners\UserEventSubscriber',
    ];
}
